#ifndef _MAINVIEWCONTROLLER_H_
#define _MAINVIEWCONTROLLER_H_

#include <QGraphicsItemGroup>
#include <QSignalMapper>

#include <UIKit/UIViewController.h>
class UIEvent;

class PageItemsView;
class DockItem;

class MainViewController : public UIViewController {
    Q_OBJECT

    public:
        MainViewController (QObject *parent = 0);
        ~MainViewController();

    protected:
        void viewDidLoad (void);
        void viewDidUnload (void);
        void orientationChanged (void);
        bool shouldAutorotate (UIInterfaceOrientation orientation) const;

    private:
        QSignalMapper m_signalMapper;
        PageItemsView *m_pagesView;
        DockItem *m_dockItem;
};

#endif /* !_MAINVIEWCONTROLLER_H_ */

